package application;

import java.util.ArrayList;
import java.util.List;

public class PreGameScreenSession {
	private static PreGameScreenSession instance = null;
	
	List<String> myAvailableGames;
	
	public static PreGameScreenSession getInstance(){
		if(instance == null){
			instance = new PreGameScreenSession();
		}
		
		return instance;
	}
	
	private PreGameScreenSession(){
		myAvailableGames = new ArrayList<String>();
		
	}
	
	public int getListLength()
	{
		return myAvailableGames.size();
	}

	public void printList()
	{
		for (int i=0; i < this.myAvailableGames.size(); i++) {
			String element = this.myAvailableGames.get(i);
			System.out.println(element);
		}
	}
}
